<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>
        <h1>xx系统登陆</h1>
        <h2 style="color: red;">{{msg}}</h2>
        <div>
            <form action="{% url 'UserAPP:login' %}" method="post">
                {% csrf_token %}
                <div>
                    用户名：<input type="text" name="username" id="username" value="{{username}}">
                </div>
                <div>
                    密码：<input type="text" name="password" id="password">
                </div>
                <div>
                    <input type="submit" value="登陆">
                    <a href="{% url 'UserAPP:register' %}"></a>
                </div>
            </form>
        </div>
    </div>
</body>

</html>